import request from '@/utils/request'

// 查询定期检查记录列表
export function listCheck(query) {
  return request({
    url: '/civil/regularcheck/list',
    method: 'get',
    params: query
  })
}

// 查询定期检查记录详细
export function getCheck(regularCheckId) {
  return request({
    url: '/civil/regularcheck/' + regularCheckId,
    method: 'get'
  })
}

// 新增定期检查记录
export function addCheck(data) {
  return request({
    url: '/civil/regularcheck',
    method: 'post',
    data: data
  })
}

// 修改定期检查记录
export function updateCheck(data) {
  return request({
    url: '/civil/regularcheck',
    method: 'put',
    data: data
  })
}

// 删除定期检查记录
export function delCheck(regularCheckId) {
  return request({
    url: '/civil/regularcheck/' + regularCheckId,
    method: 'delete'
  })
}

export function pictureUp(data) {
  return request({
    url: '/civil/regularcheck/upload',
    method: 'post',
    data: data
  })
}
